﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Data;
namespace BUS
{
    public class TACGIABUS
    {
        public string laytentacgia(int matacgia)
        {
            TACGIADAO tgDAO = new TACGIADAO();
            return tgDAO.laytentacgia(matacgia);
        }

        public int laymatacgia(string tentacgia)
        {
            TACGIADAO tgDAO = new TACGIADAO();
            return tgDAO.laymatacgia(tentacgia);
        }

        public bool Themtacgia(string tentacgia)
        {
            TACGIADAO tagDAO = new TACGIADAO();
            return tagDAO.Themtacgia(tentacgia);
        }

        public DataTable Loadtacgia()
        {
            DataTable datatble = new DataTable();
            TACGIADAO tgDAO = new TACGIADAO();
            datatble = tgDAO.Loadtacgia();
            return datatble;
        }
    }
}
